import json


# 定义工具函数,读取json文件中的数据,转换为[(),(),()]格式的数据
from config import BASE_DIR


def read_json():
    with open(BASE_DIR +"/data/ihrm_login_data.json", "r", encoding="utf8") as f:
        json_data = json.load(f)
        ihrm_login_data = []
        for data in json_data:
            ihrm_login_data.append(tuple(data.values()))
        return ihrm_login_data


if __name__ == '__main__':
    print(read_json())
